package cn.xiaoqintools.studypark.bean;


import cn.xiaoqintools.studypark.R;
import cn.xiaoqintools.studypark.fragment.MessageFragment;
import cn.xiaoqintools.studypark.fragment.NoticeFragment;
import cn.xiaoqintools.studypark.fragment.SigninFragment;
import cn.xiaoqintools.studypark.fragment.UserInfoFragment;

public enum MainTab {

	NOTICE(0, R.string.str_tab_title1, R.mipmap.ic_launcher,
			NoticeFragment.class),

	MESSAGE(1, R.string.str_tab_title2,R.mipmap.ic_launcher,
			MessageFragment.class),

	SIGN(2, R.string.str_tab_title3, R.mipmap.ic_launcher,
			SigninFragment.class),

	ME(3, R.string.str_tab_title4, R.mipmap.ic_launcher,
			UserInfoFragment.class);

	private int idx;
	private int resName;
	private int resIcon;
	private Class<?> clz;

	MainTab(int idx, int resName, int resIcon, Class<?> clz) {
		this.idx = idx;
		this.resName = resName;
		this.resIcon = resIcon;
		this.clz = clz;
	}

	public int getIdx() {
		return idx;
	}

	public void setIdx(int idx) {
		this.idx = idx;
	}

	public int getResName() {
		return resName;
	}

	public void setResName(int resName) {
		this.resName = resName;
	}

	public int getResIcon() {
		return resIcon;
	}

	public void setResIcon(int resIcon) {
		this.resIcon = resIcon;
	}

	public Class<?> getClz() {
		return clz;
	}

	public void setClz(Class<?> clz) {
		this.clz = clz;
	}
}
